<template>
  <div>
    <VisualEditor v-model="jsonData" :config="visualConfig"></VisualEditor>
    <!-- <TestUseModel v-model="val"></TestUseModel> -->
    <!-- {{ val }} -->
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { VisualEditor } from "./packages/visual-editor";
import { TestUseModel } from "./packages/utils/index";
import { visualConfig } from "@/visual.config";
const jsonData =require('./data.json')

export default defineComponent({
  name: "App",
  components: {
    VisualEditor,
    // TestUseModel,
  },
  data() {
    return {
      visualConfig,
      jsonData
    };
  },
});
</script>

<style lang="scss">
html,
body {
  margin: 0;
  padding: 0;
}
</style>
